sinclude ../../../config.make
#global 包含平台相关的配置，比如 build/config/Linux
include $(POCO_BASE)/build/rules/global
POCO_HOST_OSNAME = $(shell uname)
POCO_HOST_OSARCH ?= $(subst /,-,$(shell uname -m | tr ' ' _))

incdir=-I$(POCO_BASE)/Foundation/include -I$(POCO_BASE)/Net/include -I$(POCO_BASE)/Util/include
pocolib=-lPocoNetd -lPocoFoundationd -lPocoUtil

target=app

libdir=$(POCO_BASE)/lib/$(POCO_HOST_OSNAME)/$(POCO_HOST_OSARCH)

$(target): 
	g++ -g SampleApp.cpp -o $@ $(pocolib) $(incdir) -L$(libdir) -std=c++11 -Wl,-rpath=$(libdir) 

clean:
	-rm ${target}
